home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Utilities Experience
/
The Utilities Experience - Volume 1.iso
/
software
/
demos
/
r-z
/
stormc-demo
/
include
/
storm
/
libbase.h
next >
Wrap
C/C++ Source or Header
|
1996-01-09
|
770b
|
37 lines
#ifndef _INCLUDE_LIBBASE_H
#define _INCLUDE_LIBBASE_H
/*
** $VER: libbase.h 10.1 (7.1.96)
** Includes Release 40.15
**
** '(C) Copyright 1995 Haage & Partner Computer GmbH'
** All Rights Reserved
*/
#ifndef __cplusplus
#error <libbase.h> must be compiled in C++ mode.
#pragma +
#endif
#ifndef EXEC_LIBRARIES_H
#include <exec/libraries.h>
#endif
class LibBaseC {
public:
LibBaseC(STRPTR name, ULONG version, BOOL exitOnFail = TRUE);
~LibBaseC();
BOOL isOpen() const { return Base != NULL; };
static BOOL areAllOpen() const { return !not_open; };
operator struct Library *() const { return Base; };
UWORD version() const;
private:
LibBaseC(const LibBaseC &);
LibBaseC &operator= (const LibBaseC &);
struct Library *Base;
static BOOL not_open;
};
#endif